package com.company.oa.workflow.dto.expense;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ExpenseDTO {
    
    private Long id;
    
    @NotNull(message = "报销类型不能为空")
    private Integer expenseType;
    
    @NotNull(message = "报销金额不能为空")
    private BigDecimal amount;
    
    @NotBlank(message = "报销说明不能为空")
    private String description;
    
    private String attachmentPath;
    
    private Integer status;
    
    @NotEmpty(message = "报销明细不能为空")
    private List<ExpenseItemDTO> items;
} 